package com.teamcenter.rac.massupdate.databinding;

import org.eclipse.ui.views.properties.IPropertySource;

import com.teamcenter.rac.kernel.TCComponentItemRevision;
import com.teamcenter.rac.util.AdapterUtil;

public class FindReplacementItemRevObservable extends AbstractFindObservable {
	public void doSetValue(Object paramObject) {
		TCComponentItemRevision localTCComponentItemRevision = findItemRevision();
		if (localTCComponentItemRevision != null) {
			IPropertySource localIPropertySource = (IPropertySource) AdapterUtil
					.getAdapter(localTCComponentItemRevision, IPropertySource.class);
			getUpdateJobModel().setReplacementPart(localIPropertySource);
		}
	}

	public String getSearchText() {
		return getUpdateJobModel().getReplacementFindText();
	}

	public void setSearchText(String paramString) {
		getUpdateJobModel().setReplacementFindText(paramString);
	}
}